package com.duang.framework.service;

public class ServiceFacade {

	public static BaseService<?> getServiceByName(String name) {
		return ServiceSingleFactory.findServiceByName(name);
	}

	@SuppressWarnings("unchecked")
	public static <T> T getServiceByClass(Class<T> serviceClazz) {
		return (T)ServiceSingleFactory.findServiceByClass(serviceClazz);
	}

}
